<template>
    <div>
        <addBth @click.native="
        $refs.myDialog.visible=true"></addBth>
        <myDialog ref="myDialog"
        @confirm="addArticle">
        </myDialog>
        <div class="container">
            <div class="title">
                <div class="item">文章ID</div>
                <div class="item">文章标题</div>
                <div class="item">文章表签</div>
                <div class="item">作者</div>
                <div class="item">操作</div>
            </div>
            <div class="content" v-for="(obj,index) in articleList" :key="index"></div>
           <div class="item">{{obj.id}}</div>
          <div class="item">{{obj.title}}</div>
          <div class="item">{{obj.label}}</div>
          <div class="item">{{obj.author}}</div>
          <div class="item">
              <button class="edit-bth">编辑</button>
              <button class="delete-bth" @click="deleteArtice(index)">删除</button>
        </div>
    </div>
    </div>
   
</template>